import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
import { fa } from 'element-plus/es/locales.mjs'

export const useCounterStore = defineStore('counter', () => {
  const count = ref(0)
  const doubleCount = computed(() => count.value * 2)
  function increment() {
    count.value++
  }
  //员工Id(登录者Id)
  const employeeId = ref(0)
  //员工Id(登录姓名)
  const employeeName = ref("")
  const loginTrue = ref(false)
  //登录状态
  const loginStatus = ref(false)
  //下拉框状态 
const n1 = ref(false);
const n2 = ref(false);
const n3 = ref(false);
  return { employeeId,employeeName,loginStatus,loginTrue,count,n1,n2,n3, doubleCount, increment }
}, {
  persist: true,
}
)
